package personal.vivian.resover;

import personal.vivian.annontation.Hidden;
import personal.vivian.builder.ItemBuilder;
import personal.vivian.builder.TransformBuilder;
import personal.vivian.interf.Options;

public class HiddenResovler implements Resovler {
    @Override
    public   void apply(TransformBuilder transformBuilder, ItemBuilder itemBuilder) {
        Hidden hidden=itemBuilder.getItem().getTargetField().getAnnotation(Hidden.class);
        if(hidden!=null){
            itemBuilder.option(Options.hiddenField());
        }
    }
}
